import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception{
        System.out.printf("1.01的365次方为"+"%.2f%n",Math.pow(1.01,365));
        System.out.printf("0.99的365次方为"+"%.2f%n",Math.pow(0.99,365));
        //第一项要求

        System.out.println("请输入你的x");
        Scanner scanner = new Scanner(System.in);
        double runnning = scanner.nextDouble();
        System.out.println("你输入了"+runnning);
        double tmp1 =Math.abs(runnning)-1;
        double y1 = Math.sqrt(Math.pow(tmp1,2));
        //公式一
        double tmp2 = 1 - Math.abs(runnning);
        double y2 = Math.acos(tmp2)-Math.PI;
        //公式二
        System.out.println("公式一结果为"+y1);
        System.out.println("公式二结果为"+y2);
    }

}